package com.heima.admin.channelControllerApi;

import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ChannelDto;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;

@Api(value = "黑马头条api",tags = "channel",description = "频道管理api")
public interface AdChannelControllerApi {

    @ApiOperation("频道分页列表查询")
    public ResponseResult findByNameAndPage(ChannelDto channelDto);

    @ApiModelProperty("新增频道")
    public ResponseResult insertChannel(AdChannel adChannel);

    @ApiModelProperty("修改频道")
    public ResponseResult updateChannel(AdChannel adChannel);

    @ApiModelProperty("频道删除")
    public ResponseResult deleteById(Integer id);
}
